package thread;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-07-27
 * Time: 14:46
 */
class Singleton{
    private static Singleton instance = new Singleton();
    public static Singleton getInstance() {
        return instance;
    }
    private Singleton() {}
}
public class Demo16 {
    public static void main(String[] args) {
        Singleton s1 = Singleton.getInstance();
    }
}
